25. Checking Out Old Versions of Code

Checking Out Old Versions of Code

Question:

Start Quiz:

Solution:

INSTRUCTOR NOTE:

You can download the troubleshooting_guide.pdf here.

QuickEdit Mode

To make copying and pasting in GitBash easier by turning on QuickEdit mode, follow the instructions here.

Most Recent Commit

The commit ID of the most recent commit is 3884eab839af1e82c44267484cf2945a766081f3. You can use this commit ID to return to the latest commit after checking out an older commit.

Format of git checkout

The command Caroline types to checkout the "Revert controls" commit is git checkout b0678b161fcf74467ed3a63110557e3d6229cfa6.

Windows Explorer

When Caroline mentions opening a "file navigation GUI" on Windows, she is referring to the Windows Explorer.

Entering commit IDs

If it is easier, you may enter the first four or more characters of the commit ID rather than pasting the entire ID.

Most Recent Commit

The commit ID of the most recent commit is 3884eab839af1e82c44267484cf2945a766081f3. You can use this commit ID to return to the latest commit after checking out an older commit.